using MediatR;
using Traceability.API.Dtos;
using Traceability.ErrorCode;

namespace Traceability.API.APPLications.Commands.TraceabilityInfo
{
    /// <summary>
    /// 添加溯源信息命令
    /// </summary>
    public class AddTraceabilityInfoCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 商品主键
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string ProductionBatch { get; set; }

        /// <summary>
        /// 保质期（天数）
        /// </summary>
        public int ShelfLife { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string ProductionLicenseNumber { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string ManufacturerName { get; set; }

        /// <summary>
        /// 信息完整度（百分比）
        /// </summary>
        public decimal InformationCompleteness { get; set; }
        /// <summary>
        /// 照片
        /// </summary>
        public string PhotoUrl { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedBy { get; set; }
    }
} 